package cn.rocksolid.sport.security.dao;

import cn.rocksolid.sport.common.dao.RockSolidBaseMapper;
import cn.rocksolid.sport.security.entity.MenuEntity;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * System Menu DAO
 *
 * @author Axl Zhao
 * @email axl.zhao@163.com
 */
@Component
public interface MenuDao extends RockSolidBaseMapper<MenuEntity> {
  /**
   * Query all perms by given User ID
   */
  List<String> queryPermsByUid(final String uid);

  /**
   * Query all Menus entities by given User ID
   */
  List<MenuEntity> queryMenusByUid(final String uid);

  /**
   * CAN ONLY BE INVOKED BY BACKOFFICE
   */
  List<MenuEntity> queryAllMenus();
}
